package com.cn.mybatis.zy.zymybatis.service.impl;

import com.cn.mybatis.zy.zymybatis.dao.UserDao;
import com.cn.mybatis.zy.zymybatis.entity.User;
import com.cn.mybatis.zy.zymybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangyi
 * @date 2018/12/18 11:43
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> getAllUsers() {
        return userDao.selectAllUsers();
    }
}
